<h1><%= @page_title %></h1>
<%= form_for @user, :url => { :action => "create" } do |f| %>
<p>
<%= error_messages_for :user %>
</p>
<p>
  <%= label_tag(:username, "Username") %>
  <%= f.text_field :username %>
</p>
<p>
  <%= label_tag(:realname, "Realname") %>
  <%= f.text_field :realname %>
</p>
<p>
  <%= label_tag(:password, "Password") %>
  <%= f.password_field :password %>
</p>
<p>
  <%= label_tag(:password_confirmation, "Password Confirmation") %>
  <%= f.password_field :password_confirmation %>
</p>
<p>
  <%= label_tag(:email, "Email") %>
  <%= f.text_field :email %>
</p>
<p>
  <%= label_tag(:mobile, "Mobile") %>
  <%= f.text_field :mobile %>
</p>
<p>
  <%= f.submit "Sign up" %>
</p>
<% end %>